package com.dong.aop.aspect;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * description
 *
 * @author Administrator 2021/09/09 18:43
 */
public class AspectTest {

    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class,MyAspect.class, MyAspectService.class);

        MyAspectService myAspectService = context.getBean(MyAspectService.class);
        myAspectService.sayHello("jerry");
    }
}
